package model;

import java.util.ArrayList;
import java.util.List;

public class AliveSeed extends Seed {

	private int height;
	private int length;
	private List<Cell> cells;
	
	
	public AliveSeed(int height, int length){
		this.height = height;
		this.length = length;
		cells = new ArrayList<Cell>();
		initializeCells();
	}
	
	private void initializeCells() {
		for (int i = 1; i <= height; i++) {
			for (int j = 1; j <= length; j++) {
					 cells.add(new Cell(i,j,new Alive()));
			}
		}
		linkCells(cells);
	}


	@Override
	public int getHeight() {
		return height;
	}
	@Override
	public int getLength() {
		return length;
	}

	@Override
	public List<Cell> getCells() {
		return cells;
	}

}
